﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HFController;

namespace HFWebApp.Control
{
    public partial class ProvinceCity_list : System.Web.UI.UserControl
    {
        public int TypeID { get; set; }
        public string LinkString { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (TypeID == 0)
                {
                    //省份列表
                    province_list.DataSource = CityController.getController().getProvinceList();
                    province_list.DataBind();
                }
                else
                {
                    //城市列表
                    city_list.DataSource = CityController.getController().getProvinceCityList();
                    city_list.DataBind();
                }
            }
        }
    }
}